<section class="block-courses-course<?php echo ( ($this->count%2 > 0) ? ' alternative' : ''); ?>">
    <section class="block-courses-course-icon">
        <img src="<?php echo $this->baseUrl(); ?>/images/icon_course.png" alt="course" />
    </section>
    <a href="<?php echo $this->baseUrl(); ?>/course/view/id/<?php echo $this->object->Id; ?>">
        <span class="block-courses-course-title" title="<?php echo $this->object->Name; ?>">
            <?php
                if(strlen($this->object->Name) > 13)
                {
                    echo substr($this->object->Name, 0, 13)."&hellip;";
                }
                else
                {
                    echo $this->object->Name;
                }
            ?>
        </span>
    </a>
    <section class="block-courses-course-delete">
        <a href="<?php echo $this->baseUrl(); ?>/index/deletecourse/id/<?php echo $this->object->Id; ?>" onclick="return confirm('Are you sure?');">
            <img src="<?php echo $this->baseUrl(); ?>/images/icon_delete.png" alt="Delete" />
        </a>
    </section>
</section>